/*
 * @Author: 李环玉 834654733@qq.com
 * @Date: 2023-12-23 17:22:51
 * @LastEditors: 李环玉 834654733@qq.com
 * @LastEditTime: 2023-12-24 13:22:57
 * @FilePath: \koa-server\src\router\systemMenu.router.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

const Router = require('koa-router')
const { getMenu,getCuntMenu,addMenu,editMenu,deleteMenu,getOneMenu } = require('../controller/systemMenu.controller')
const { auth } = require("../middleware/admin.middleware")
const router = new Router({prefix:'/system'})

router.post('/menu/list',auth,getMenu)
router.post('/menu/all',auth,getCuntMenu)
router.post('/menu/insert',auth,addMenu)
router.post('/menu/update',auth,editMenu)
router.post('/menu/delete',auth,deleteMenu)
router.post('/menu/detail',auth,getOneMenu)
module.exports = router